package com.docchatlink.vo;

import com.docchatlink.constant.MethodEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.List;


/**
 * @author dayon
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class AnswerChatVO {

    private String question;

    private String chatId;
    /**
     * 缓存星火会话的sid
     */
    private String xhSid;

    private List<String> picUrl;
    /**
     * 会话结束标识
     */
    private Boolean isOver;

    private MethodEnum methodEnum;

    private Object content;

    private Integer code;

    private String value;


    public Integer getCode() {
        return methodEnum.getCode();
    }

    public String getValue() {
        return methodEnum.getValue();
    }

    public void setCode(Integer code) {
        this.methodEnum = MethodEnum.findByCode(code);
    }

    public void setValue(String value) {
        this.methodEnum = MethodEnum.findByValue(value);
    }
}
